// Two function need to be implemented , MarketForm_handler & MarketForm_handler_configMode
// used GM Variables
// ds_marketRuleStep : 进行到哪一步  fir、buy sec、sale sec、buy th、sale th..
// ds_marketRuleCurrent : 当前买卖规则.
// ds_marketRuleTryCount : 买卖失败后的.

function MarketForm_handler(){
    //在购买资源后会跳转到这个页面，通过判断有没有marketRuleCurrent知道是不是自动跳转到这个页面的，从而决定是不是跳转回城市页面 
    //由于购买了资源后一定会有消息发送过来 故将这个跳转直接改为跳转到消息页面
    if (GM_safeVariables["ds_marketRuleStep"] != null && GM_safeVariables["ds_marketRuleStep"] =="buy th") {
        delete GM_safeVariables["ds_marketRuleStep"];
        delete GM_safeVariables["ds_marketRuleCurrent"];
        GM_safeVariables["ds_marketRuleTryCount"] = "0";
        clickLink("/messageList?type=1&isread=0");
    }
}

function MarketForm_handler_configMode(){
}

